<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <title>我的简介</title>
    <link rel="stylesheet" type="text/css" media="screen" href="{$staticHost}/static/css/base.css?v=14" />
    <link rel="stylesheet" type="text/css" media="screen" href="{$staticHost}/static/css/mod.css?v=14" />
    <link rel="stylesheet" type="text/css" media="screen" href="{$staticHost}/static/css/run.css?v=130" />
    <script src="{$staticHost}/static/js/jquery.min.js"></script>
    <script src="{$staticHost}/static/js/mod.js"></script>
    <script src="{$staticHost}/static/js/js.js"></script>
</head>
<body style="background: #f5f7fa;">
    <textarea id="content" autofocus required class="intro mt10" name="content" placeholder="写一段您的个人简介，让成员更好的了解您及您的带队经验">{$content}</textarea>
    <a class="intro-a mt10">完成</a>
</body>
<script type="text/javascript">
var clubId = "{$clubId}";
$(function(){
    $('.intro-a').click( function(){
        var content = $('#content').val();
        if(content) {
            $.post('{$staticHost}/paome_webIndex/addClubLeaderIntroduce', {'introduce':content, 'clubId':'{$clubId}'}, function(data){
               
                if(data.error != undefined) {
                    alert(data.error.text);
                } else {
                    window.location.href = '{$staticHost}/paome_webIndex/clubDetailNo?clubId={$clubId}';
                }
            })
        }

        return;
    });
})
</script>

</html>
